const fs = require('fs')

let picData = {}
for (let i = 0; i < 4; i++) {
  let buf = fs.readFileSync(`./${i}.jpg`)
  let base64 = buf.toString('base64')
  picData[`${i}.jpg`] = 'data:image/jpg;base64,' + base64
}
fs.writeFileSync(`../../src/testData/picData.json`, JSON.stringify(picData, null, 2))
